home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************************
- * "sidlg.h"
- *-------------------------------------------------------------------------
- * Dialog library
- * Copyright (c) 1993, TaroPYON
- *************************************************************************/
-
- #ifndef _SIDLG_H
- #define _SIDLG_H
-
- #ifndef _SIEV_H
- # include <siev.h>
- #endif
- #ifndef _SISCN_H
- # include <siscn.h>
- #endif
- #ifndef _SIWIN_H
- # include <siwin.h>
- #endif
-
- typedef struct _sidlg_t /* ダイアログ構造体 */
- {
- struct _sidlg_t *prev, *next;
-
- unsigned int att; /* 属性 */
- unsigned int stt; /* ステータス */
-
- RECTANGLE_T rect; /* システムフレーム */
- FRAME_T fr; /* ユーザーフレーム */
- WIN_T *win; /* ウィンドゥ用ワーク */
- EV_T *ev; /* イベント用ワーク */
-
- struct /* マウスカーソル指定 */
- {
- int md; /* モード */
- POINT_T newPos; /* マウスカーソルの位置 */
-
- int posFlag;
- POINT_T pos;
- POINT_T posDlg; /* ダイアログの表示位置 */
-
- int movFlag;
- FRAME_T frMove; /* 移動範囲 */
- void *work; /* ワーク用 */
- } pd;
-
- int typ; /* ダイアログタイプ */
- void *dlgPara; /* ダイアログパラメータ */
- int (*dlgFunc)(struct _sidlg_t *);
- /* システム表示関数 */
-
- int (*dspFunc)(struct _sidlg_t *);
- /* ユーザー描画関数 */
- void *ptr;
- } DLG_T;
-
- /*----------------------------------------------------------------------*/
- #define DLGPD_POS_OFF (0x0000_0000) /* 何もしない */
- #define DLGPD_POS_USR (0x0000_0001) /* ユーザー指定 */
- #define DLGPD_MOV_IN (0x0001_0000) /* 移動範囲の制限 */
-
- /*----------------------------------------------------------------------*/
- #define DLGTYP_NOTHING (0x0000) /* 何もしない */
- #define DLGTYP_STD1 (0x0001) /* 標準1 */
- #define DLGTYP_STD2 (0x0002) /* 標準2 */
- #define DLGTYP_LST1 (0x0101) /* リスト表示タイプ */
-
- /*----------------------------------------------------------------------*/
- #define DLGPOS_NORMAL (0)
- #define DLGPOS_CENTER_OF_SCREEN (1) /* 画面中央 */
- #define DLGPOS_MOSCUR (8) /* マウスカーソル位置に */
-
- /*----------------------------------------------------------------------*/
- extern DLG_T *DLG_open( int (*dspFunc)(DLG_T *), void *ptr );
- extern int DLG_dsp( DLG_T *dlg );
- extern int DLG_off( DLG_T *dlg );
- extern void DLG_close( DLG_T *dlg );
- extern int DLG_setSize( DLG_T *dlg, int xs, int ys );
- extern int DLG_setPosition( DLG_T *dlg, int md, ... );
- extern int DLG_move( DLG_T *dlg, int newX, int newY );
- extern int dlg_moveSrv( DLG_T *dlg, int *newX, int *newY );
- extern int DlgMoveEvFunc( int evNo, EVDAT_T *evdat );
- /*----------------------------------------------------------------------*/
-
- #endif
-